package com.bos.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author Administrator
 */
@Controller
public class CommonController {

    //通用映射规则，是要适配ztree上面的page属性
    @RequestMapping(value = "/page/{base}/{jsp}",method = RequestMethod.GET)
    public String baseMapping( @PathVariable(value = "base") String dir,@PathVariable(value = "jsp") String jsp){
        return dir+"/"+jsp;
    }
}
